// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///E:/weidu/weidu/node_modules/vite/dist/node/index.js";
import AutoImport from "file:///E:/weidu/weidu/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/weidu/weidu/node_modules/unplugin-vue-components/dist/vite.js";
import { VantResolver } from "file:///E:/weidu/weidu/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs";
import { ElementPlusResolver } from "file:///E:/weidu/weidu/node_modules/unplugin-vue-components/dist/resolvers.js";
import vue from "file:///E:/weidu/weidu/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import pxtorem from "file:///E:/weidu/weidu/node_modules/postcss-pxtorem/index.js";
var __vite_injected_original_import_meta_url = "file:///E:/weidu/weidu/vite.config.ts";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [VantResolver(), ElementPlusResolver()]
    }),
    Components({
      resolvers: [VantResolver(), ElementPlusResolver()]
    })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    proxy: {
      // '/api': {
      //   target: 'http://172.27.6.139',
      //   changeOrigin: true,
      // },
      "/api": {
        target: "http://wq.bwstudent.com:7999",
        changeOrigin: true,
        rewrite: (path) => path.replace("/api", "")
      },
      "/health": {
        target: "http://172.27.6.139/api",
        changeOrigin: true,
        rewrite: (path) => path.replace("/health", "")
      },
      "/v3": {
        target: "http://localhost:8090",
        changeOrigin: true,
        rewrite: (path) => path.replace("/v3", "")
      },
      host: "0.0.0.0"
    }
  },
  // resolve: {
  //   alias: {
  //     '@': path.resolve(__dirname, 'src')
  //   }
  // },
  css: {
    postcss: {
      plugins: [
        pxtorem({
          rootValue: 37.5,
          //手机设计稿宽度为375px的
          propList: ["*"],
          //属性的选择器，*表示通用
          exclude: /node_modules/i
          //忽略web下的所有文件
        })
      ]
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2Z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